package org.vector.view;

import java.awt.FlowLayout;
import java.awt.Font;

import javax.swing.JFrame;
import javax.swing.JLabel;

@SuppressWarnings("serial")
public class WinTip extends JFrame{

	private JLabel j1;
	
	public WinTip() {}
	
	public WinTip(String tip) {
		into(tip);
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setVisible(true);
	}
	
	private void into(String tip) {
		setTitle("温馨提示");
		setSize(300, 200);
		setLayout(new FlowLayout());
		setLocationRelativeTo(null);
		j1 = new JLabel(tip);
		j1.setFont(new Font("宋体",0,24));
		add(j1);	
	}
	
//	public static void main(String[] args) {
//		new WinTip("asdasd");
//	}
}
